package org.fioma.tree.suffixTree.memory.ukkonen;

import org.fioma.tree.bytes.LabelRefBytes;
import org.fioma.tree.suffixTree.memory.InternalSuffixNodeMemory;
import org.fioma.tree.suffixTree.memory.LeafSuffixNodeMemory;
import org.fioma.tree.suffixTree.ukkonen.UkkonenInternalSuffixNode;

public class UkkonenInternalSuffixNodeMemory extends InternalSuffixNodeMemory<LabelRefBytes, UkkonenInternalSuffixNodeMemory, LeafSuffixNodeMemory> implements
		UkkonenInternalSuffixNode<LabelRefBytes, UkkonenInternalSuffixNodeMemory, LeafSuffixNodeMemory> {

	public UkkonenInternalSuffixNodeMemory(UkkonenMemory<LabelRefBytes, UkkonenInternalSuffixNodeMemory, LeafSuffixNodeMemory> memory, long pos) {
		super(memory, pos);
	}

	@Override
	public UkkonenInternalSuffixNodeMemory getSuffixLink() {
		return ((UkkonenMemory<LabelRefBytes, UkkonenInternalSuffixNodeMemory, LeafSuffixNodeMemory>) memory).getSuffixLink(pos);
	}

	@Override
	public void setSuffixLink(I suffixLink) {
		((UkkonenMemory<LabelRefBytes, UkkonenInternalSuffixNodeMemory, LeafSuffixNodeMemory>) memory).setSuffixLink(pos, suffixLink);

	}

}
